package com.cartview.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.cartview.bean.CartView;
import com.cartview.dao.ICartViewDao;

@Transactional
@Service
public class CartViewService implements ICartViewService {

	public void setCartViewDao(ICartViewDao cartViewDao) {
		this.cartViewDao = cartViewDao;
	}

	@Override
	public List<CartView> getAllCart() {
		return cartViewDao.getAllCart();
	}

	@Override
	public List<CartView> getCartByUsername(String username) {
		return cartViewDao.getCartByUsername(username);
	}

	private ICartViewDao cartViewDao;
}
